import React,{ Component } from  'react'
import  ImageList from  './../../containers/image_list'

export  default class  IndexBody extends  Component {
    constructor(props) {
        super(props)
    }
    componentDidMount() {
        this.setState({
            wrapWidth:this.refs.wrapDiv.clientWidth,
            wrapHeight:this.refs.wrapDiv.clientHeight
        })
    }
    render() {
        return (
                <div className="container">
                    <div>
                        <div className="wrap" id="wrap" ref='wrapDiv'>
                        <ImageList
                           /* wrapWidth = {this.state.wrapWidth}
                            wrapHeight = {this.state.wrapHeight}*/
                        />
                        </div>
                    </div>
                </div>

        )
    }
}

